package com.example.xungeng2.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.xungeng2.pojo.TaskPoint;

import java.util.List;

public interface TaskPointService extends IService<TaskPoint> {
    List<TaskPoint> selectAllPoint();

    void deletePoint(Integer pointId);

    List<Integer> findPointIds(Integer userId);

    TaskPoint selectPointById(Integer integer);

    int selectUserRWPointState(Integer userId, Integer integer);

    boolean clockPoint(int taskId, int userId);

    boolean selectUserPoint(String userId, String taskId);

    void allotPoint(String user, String point);

    void changePointState(String taskId, String date);

    Page<TaskPoint> selectPageAll(Long i, Long i1);

    void deleteThisPoint(TaskPoint taskPoint);
}